package com.cn.zengzeng.spbzengzeng.test;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

/**
 * @Description:
 * @Author: ZhangZengZeng
 * @Date: 2022/8/22 14:53
 */
@Slf4j
public class Demo3 {
    public static void main (String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run () {
                for(int i = 0;i < 10000;i++) {
                    log.warn("当前次数:{}",i);
                    System.out.println(Thread.currentThread().getName());
                }
            }
        }).start();
    }

    @Test
    public void show(){
        new Thread(new Runnable() {
            @Override
            public void run () {
                for(int i = 0;i < 10;i++) {
                    System.out.println(Thread.currentThread().getName());
                    System.out.println("i = " + i);
                    log.warn("");

                }
            }
        }).start();
    }
}
